package com.tuananh.radnom.model.netpoller;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


@XmlRootElement(name = "netpoller")
@XmlType(propOrder = { "name", "netPoller" })
public class NetPollerMap {
	String name;

	NetPoller netPoller;

	@XmlAttribute
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@XmlJavaTypeAdapter(NetPollerXmlAdapter.class)
	@XmlAttribute(name = "class")
	public NetPoller getNetPoller() {
		return netPoller;
	}

	public void setNetPoller(NetPoller netPoller) {
		this.netPoller = netPoller;
	}
}
